package com.base.pig.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.base.pig.entity.Smregister;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yjh
 * @since 2022-04-15
 */
@Mapper
public interface SmregisterMapper extends BaseMapper<Smregister> {

    @Select(" select SmTableName from  smregister  r  where  r.SmDatasetName  = #{smDatasetName}  LIMIT 1  ")
    String getTableName(String smDatasetName);
}
